function closeProjectTasks(element)
{
  element.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.style.display = "none";
}

function filterByChosenDate(path, startYear, startMonth, endYear, endMonth)
{
  startDate= document.getElementById(startYear).value + "-" + document.getElementById(startMonth).value;
  endDate= document.getElementById(endYear).value + "-" + document.getElementById(endMonth).value;
  path = path.split('/');
  //last one - endDate
  path[path.length-1] = endDate;
  path[path.length-2] = startDate;  
  document.location = path.join('/');
}

function startMenuLoader(element)
{
  element.getElementsByTagName('img')[0].style.visibility = "visible";
}

function help(doc)
{
  window.open ("/help/help.htm#"+doc,"mywindow","status=1,scrollbars=1,width=800,height=800"); 
}